import { Component } from "react";
import React from 'react';
// import { Button,  message} from "antd"; //引入antd ui组件库
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import Dashboard from './pages/Dashboard/dashboard'
import LogManager from './pages/LogManager/logmanager'
/**
 * 应用的根组件
 */
export default class App extends Component {
    componentDidMount() {
        
    }

    // handleClick = () =>{
    //     message.success('点击成功');
    // }

    render (){
        return  (
            <div>
                 {/* <Button type="primary" onClick={ this.handleClick } >测试antd</Button> */}
                <BrowserRouter>
                {/* 只匹配其中一个 */}
                    <Switch>
                        <Route path='/dashboard' component={Dashboard} ></Route>
                        <Route path='/logmanager' component={LogManager} ></Route>
                    </Switch>
                </BrowserRouter>
            </div>
        )
    }

}